
import ajax from '../utils/request'
import { ParamsProps } from './api.d'

export const FetchGetLogin = ({phone, password}:ParamsProps) => {
  return ajax.post('/api/login', {phone, password})
}

export const FetchGetRegister = ({phone, password}:ParamsProps) => {
  return  ajax.post('/api/register', {phone, password})
}
